package cate.game.role.bag.furniture;

import com.fasterxml.jackson.annotation.JsonIgnore;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("临时洗练属性")
public class FurnitureRecastTemp {
    @NoteField(value = "手办种族")
    public byte camp;
    @NoteField(value = "手办职业")
    public byte job;
    @NoteField(value = "阵营属性1")
    public int camp1AttrId;
    @NoteField("阵营属性2")
    public int camp2AttrId;
    @NoteField(value = "手办职业属性1")
    public int job1AttrId;
    @NoteField(value = "职业属性2")
    public int job2AttrId;
    @NoteField("通用属性")
    public int commonAttrId;

    public void clear() {
        this.camp = 0;
        this.job = 0;
        this.camp1AttrId = 0;
        this.camp2AttrId = 0;
        this.job1AttrId = 0;
        this.job2AttrId = 0;
        this.commonAttrId = 0;
    }

    @JsonIgnore
    public boolean isEmpty() {
        return camp == 0 && job == 0 && camp1AttrId == 0 && camp2AttrId == 0 && job1AttrId == 0 && job2AttrId == 0 && commonAttrId == 0;
    }
}
